/*
 * @Author: 杨超
 * @Date: 2021-06-07 15:26:26
 * @LastEditTime: 2021-10-11 11:20:30
 * @LastEditors: 杨超
 * @Description: 公路养护预算接口
 */
import CommonApi from './common'

// 公路养护预算
class BudgetingOldApi extends CommonApi {
    constructor() {
        super()
        this.scope = '/maintBudget'
    }

    // 编辑页详情
    getEditDetail(data) {
        const path = this.resolvePath('/editDetail')
        return this.post(path, data)
    }

    // 获取当前公路已创建周期列表，用于限制年度和季度选择
    getPeriodList(data) {
        const path = this.resolvePath('/existBudgetList')
        return this.post(path, data)
    }

    // 获取有预算的公路和对应年份
    getBudgetListByRoad(data) {
        const path = this.resolvePath('/enableRoadBudget')
        return this.post(path, data)
    }

    // 获取预算内容列表，用于季度和月度新建展示
    getbudgetContent(data) {
        const path = this.resolvePath('/budgetContent')
        return this.post(path, data)
    }
}

export default BudgetingOldApi
